<%@ page session="true" contentType="text/html; charset=UTF-8" errorPage="/WEB-INF/jsp/pages/jspError.jsp"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<script type="text/javascript">
var $j = jQuery.noConflict();

$j().ready(function() {
    $j(".u_fanan_table tr:first").children("th").css("background","#FFFF99");
    zebra();
    $j(".u_fanan_table tr").mousemove( function() {
        $j(this).children("td").css("background","#FF7F01");
        $j(this).children("td").css("color","#FFFFFF");
        $j(this).children("td").children('a').css("color","#FFFFFF");
        $j(this).children("td").children('font').css("color","#FFFFFF");
    });
    $j(".u_fanan_table tr").mouseout( function() {
        $j(this).children("td").css("background","#FFFFFF");
        $j(this).children("td").children('a').css("color","#000000");
        $j(this).children("td").children('font').css("color","#FF7F01");
        $j(this).children("td").css("color","#000000");
    zebra();
    });
    $j("#grade").mousemove(function(){
    $j('#starlist').css('display','block');
    });
    $j("#grade").mouseout(function(){
    $j('#starlist').css('display','none');
    });
});

$j(document).ready(function(){
    $j("#leftmenu ul:last-child").show();
    var menu_s = "";
    if (menu_s != '') {
       menu_s = parseInt(menu_s) - 1;
       $j("#leftmenu ul:eq("+menu_s+")").show();
       $j("#leftmenu h3:eq("+menu_s+") img").attr('src', "./public/user_images/dot_open1.gif");

    }
    var content_s = ""
    if (content_s != '') {
         switch (content_s)
         {
            case 'a':
                $j("#leftmenu ul:last-child li:eq(0) a:eq(0)").css({"color":"#FFB400", "background":"url(./public/user_images/leftmenu_bg_on.gif) 15px 3px no-repeat"});
                break;
            case 'b':
                $j("#leftmenu ul:last-child li:eq(1) a:eq(0)").css({"color":"#FFB400", "background":"url(./public/user_images/leftmenu_bg_on.gif) 15px 3px no-repeat"});
                break;
            case 'c':
                $j("#leftmenu ul:last-child li:eq(2) a:eq(0)").css({"color":"#FFB400", "background":"url(./public/user_images/leftmenu_bg_on.gif) 15px 3px no-repeat"});
                break;
            default:
             content_s = parseInt(content_s) - 1;
             $j("#leftmenu ul:eq("+menu_s+") li:eq("+content_s+") a:eq(0)").css({"color":"#FFB400", "background":"url(./public/user_images/leftmenu_bg_on.gif) 15px 3px no-repeat"});
            ;
         }
         
    }
     
	$j("#leftmenu h3 img").toggle(
		function(){
            
			var myh3 = $j(this).parent("h3");
            var dot = this.src.split("\/");
            
            if(dot[dot.length-1] == "dot_open1.gif"){
                $j(myh3).next("ul").children("li").fadeOut("fast");
            }else{
                  $j(myh3).next("ul").children("li").fadeIn("slow");
            }
            
			$j(myh3).next("ul").slideToggle();
			$j(this).attr("src","./public/user_images/" + (dot[dot.length-1] == "dot_open1.gif" ? "dot_close1.gif" : "dot_open1.gif"));
		},
		function(){
			var myh3 = $j(this).parent("h3");
            var dot = this.src.split("\/");
            if(dot[dot.length-1] == "dot_open1.gif"){
                $j(myh3).next("ul").children("li").fadeOut("fast");
            }else{
                  $j(myh3).next("ul").children("li").fadeIn("slow");
            }
			$j(myh3).next("ul").slideToggle();
			$j(this).attr("src","./public/user_images/" + (dot[dot.length-1] == "dot_close1.gif" ? "dot_open1.gif" : "dot_close1.gif"));
		});

    $j("#leftmenu h3 span").toggle(
		function(){
            
            var myh3 = $j(this).parent("h3");
            var dot = $j(myh3).children('img').attr("src").split("\/");
            if(dot[dot.length-1] == "dot_open1.gif"){
                $j(myh3).next("ul").children("li").fadeOut("fast");
            }else{
                  $j(myh3).next("ul").children("li").fadeIn("slow");
            }
            $j(myh3).next("ul").slideToggle();
            
            $j(myh3).children('img').attr("src","./public/user_images/" + (dot[dot.length-1] == "dot_open1.gif" ? "dot_close1.gif" : "dot_open1.gif"));
		},
		function(){
            var myh3 = $j(this).parent("h3");
            var dot = $j(myh3).children('img').attr("src").split("\/");
            if(dot[dot.length-1] == "dot_open1.gif"){
                $j(myh3).next("ul").children("li").fadeOut("fast");
            }else{
                  $j(myh3).next("ul").children("li").fadeIn("slow");
            }
            $j(myh3).next("ul").slideToggle();
            $j(myh3).children('img').attr("src","./public/user_images/" + (dot[dot.length-1] == "dot_close1.gif" ? "dot_open1.gif" : "dot_close1.gif"));
		});


	$j("#leftmenu ul li").hover(
		function(){
			$j(this).children("div").show();
			$j(this).css("z-index","2");
		},
		function(){
			$j(this).children("div").hide();
			$j(this).css("z-index","1");
		});

    $j("#invite_friends").click(function(){
         dialog("邀请好友","id:testID","500px","auto","text");
       }); 
    $j("#intraday_detail").click(function(){
        dialog("今日盈亏","id:todayDetail","280px","auto","text");
        $j.post("/Index/profitloss", {'num':new Date()}, function(data) {
                var datas = eval("("+data+")");
                $j(".todayconsume").html(datas.data['todayconsume']);
                $j(".todayrewards").html(datas.data['todayrewards']);
                $j(".todayjackpot").html(datas.data['todayjackpot']);
                $j(".todayprofit").html(datas.data['todayprofit']);
                $j(".todaydividends").html(datas.data['todaydividends']);
            });
    });
    var ads_count = parseInt("1");
    if(ads_count>0)
    {
        setTimeout("finchange()",0);
    }
});
function changebonus(bonus,percent,playrule,keyword)
{
    dialog("修改奖金与返点","iframe:/Index/editpercentbonus/playrule/"+playrule,"535px","auto","text");
}
function zebra()
{
    $j(".u_fanan_table tr:odd").children("td").css("background","#FFF9D7");
    $j(".u_fanan_table tr:even").children("td").css("background","#CCFFFF");
}

function showchild(x,size){
    y = size;
	for(var i=1;i<=y;i++){
		if(x==i){
		   document.getElementById("child"+i).style.display='block';
		   document.getElementById("Parent"+i).className='mainmenu_on';
		}else{
		   document.getElementById("child"+i).style.display='none';
		   document.getElementById("Parent"+i).className='mainmenu_off';
		}
	}
}

function correctPNG()
{ 
    var arVersion = navigator.appVersion.split("MSIE") 
    var version = parseFloat(arVersion[1]) 
    if ((version >= 5.5) && (document.body.filters)) 
    { 
       for(var j=0; j<document.images.length; j++) 
       { 
          var img = document.images[j] 
          var imgName = img.src.toUpperCase() 
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG") 
          { 
             var imgID = (img.id) ? "id='" + img.id + "' " : "" 
             var imgClass = (img.className) ? "class='" + img.className + "' " : "" 
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 
             var imgStyle = "display:inline-block;" + img.style.cssText 
             if (img.align == "left") imgStyle = "float:left;" + imgStyle 
             if (img.align == "right") imgStyle = "float:right;" + imgStyle 
             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 
             var strNewHTML = "<span " + imgID + imgClass + imgTitle 
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
             img.outerHTML = strNewHTML 
             j = j-1 
          } 
       } 
    }     
}
if(window.attachEvent)
{ 
window.attachEvent("onload", correctPNG);
}
else
{
window.onload = correctPNG;
}
</script>
<div id="div_dialog_msginfo" style="display: none;">
        <div id="msgtitle">
            <span id="msgtitle_img" class="ui-icon ui-icon-info"></span>
            <span id="msgtitle_content"></span>
            <span id="msgtitle_close" title="关闭" class="ui-icon ui-icon-circle-close" onclick="closemsg()"></span><span class="clear"></span>
        </div>
        <div class="clear">
        </div>
        <div id="msgcontent">
        </div>
        <div id="msgfooter">
            <div id="msgtime">
            </div>
            <div id="msgpage">
                <div id="msgpageinfo">
                </div>
                <div id="msgpagecontrol">
                    <span onclick="chgmsg(-1)" title="上一条" class="ui-icon ui-icon-circle-triangle-w">
                    </span><span onclick="chgmsg(1)" title="下一条" class="ui-icon ui-icon-circle-triangle-e">
                    </span>
                </div>
            </div>
        </div>
    </div> 
<div id="div_dialog_money"></div>
<div id="div_dialog_chgpassword"></div>
<div id="div_dialog_confirm" visible="false"></div>


<bean:define id="viewHelper" name="VIEW_HELPER" scope="request" />
<div id="head">
        <div id="huiyuan">
            <div id="h_l">
            </div>
            <div id="h_c">
                <ul>
                    <li class="userinfo">欢迎您进入博彩平台！</li>
                    <li class="userinfo">会员：<span id="spanUserName" class="zi"><bean:write name="viewHelper" property="username" /> </span></li>
                    <li class="userinfo">游戏金币：<span id="spanAmount" class="zi"><bean:write name="viewHelper" property="money" /></span></li>
                    <li class="userinfo">代购金币：<span id="spanAmountUsed" class="zi"><bean:write name="viewHelper" property="agentmoney" /></span></li>
                    <li class="r2"><a href="index.jsp">返回主页</a></li>
                    <li class="r"><a href="withdraw.wss" >取款</a></li>
                    <li class="r"><a href="charge.wss" >充值</a></li> 
                </ul>
            </div>
            <div id="h_r">
            </div>
        </div>
    </div>
    
<div class="top">
    <div class="header">
      <div class="topmenu">
   	    <div class="top_u_infor"><span id="grade"><img style="cursor: pointer;" class="symbol" src="./public/user_images/VIP<bean:write name="viewHelper" property="level" />.png" /></span> 
   	    | 用户返点：<span class="zi"><bean:write name="viewHelper" property="returnpos" /></span>
   	    | 注册时间：<span class="zi"><bean:write name="viewHelper" property="createtime" /> </span>
   	    | <span id="intraday_detail" style="cursor:pointer;color:#FF7F01;" >今日盈亏</span> 
        | <a href="">帮助中心</a> 
        | <a target="_blank" href="">联系客服</a>
</div>
            <div class="mainmenu">
            	<ul>
				     <li id="Parent1" class="mainmenu_on">
                          <a href="javascript:" onclick="showchild(1,'3')">时时彩</a>
                     </li>                                              
                     <li id="Parent2" class="mainmenu_off">
                          <a href="javascript:" onclick="showchild(2,'3')">快乐8</a>
                     </li>                                              
                     <li id="Parent3" class="mainmenu_off">
                          <a href="javascript:" onclick="showchild(3,'3')">十一选五</a>
                     </li>                                   
                 </ul>
            </div>
      </div>
    </div>
</div>
<div class="publicnotice">
    <ul id="child1">
       <li>
   		<a href="">重庆时时彩</a>|
		<a href="">江西时时彩</a>|
		<a href="">黑龙江时时彩</a>|
		<a href="">天津时时彩</a>|
		<a href="">湖南时时彩</a>|
		<a href="">云南时时彩</a>|
		<a href="">福建时时彩</a>|
		<a href="">内蒙古时时彩</a>|
		<a href="">新疆时时彩</a>|
		<a href="">安徽时时彩</a>|
		<a href="">上海时时彩</a>
		</li>
     </ul>    
    <ul id="child2"style="display:none">
       <li>
   		<a href="">北京快乐8</a>|
		<a href="">斯洛伐克</a>|
		<a href="">马耳他</a>|
		<a href="">加拿大BCLC</a>
		</li>    
    </ul>   
    <ul id="child3"style="display:none">
       <li>
   		<a href="">十一运夺金</a>|
		<a href="">多乐彩</a>|
		<a href="">广东11选5</a>|
		<a href="">重庆11选5</a>
		</li>
     </ul>
   <ul>
<li>
<div id="drawprompt" style="display:none"></div>
<div id="todayDetail" style="display:none">
<table>
<tr>
<td style="color:#FF7F01;"><b>代购：</b></td>
<td class="todayconsume"></td>
</tr>
<tr>
<td style="color:#FF7F01;"><b>返点：</b></td>
<td class="todayrewards"></td>
</tr>
<tr>
<td style="color:#FF7F01;"><b>中奖：</b></td>
<td class="todayjackpot"></td>
</tr>
<tr>
<td style="color:#FF7F01;"><b>盈利：</b></td>
<td class="todayprofit"></td>
</tr>
<tr>
<td style="color:#FF7F01;"><b>分红：</b></td>
<td class="todaydividends"></td>
</tr>
</table></div>
<span style="margin-left:350px;float:left;"><img src="./public/user_images/dot_notice.gif" align="absmiddle" />
<strong>网站公告:</strong>

<span id="no_1" > <a href="">新会员必看，充值教程，防止被骗</a>
    </span></span>
 </li>
</ul>
</div>